.class public Les/ld;
.super Les/od;
.source "BackgroundRender.java"


# instance fields
.field private d:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/videos/edit/player/c;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/od;-><init>(Lcom/esfile/screen/recorder/videos/edit/player/c;)V

    return-void
.end method

.method private c()Landroid/widget/ImageView;
    .locals 3

    .line 1
    new-instance v0, Landroid/widget/ImageView;

    iget-object v1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 2
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 3
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 4
    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    return-object v0
.end method


# virtual methods
.method protected a(Les/cd;)V
    .locals 1

    .line 1
    iget-boolean p1, p0, Les/od;->c:Z

    if-nez p1, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object p1, p0, Les/od;->b:Les/cd;

    if-eqz p1, :cond_2

    iget-object p1, p1, Les/cd;->g:Les/cd$c;

    if-eqz p1, :cond_2

    iget-object p1, p1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    if-eqz p1, :cond_2

    .line 3
    iget-object p1, p0, Les/ld;->d:Landroid/widget/ImageView;

    if-nez p1, :cond_1

    .line 4
    invoke-direct {p0}, Les/ld;->c()Landroid/widget/ImageView;

    move-result-object p1

    iput-object p1, p0, Les/ld;->d:Landroid/widget/ImageView;

    .line 5
    :cond_1
    iget-object p1, p0, Les/ld;->d:Landroid/widget/ImageView;

    iget-object v0, p0, Les/od;->b:Les/cd;

    iget-object v0, v0, Les/cd;->g:Les/cd$c;

    iget-object v0, v0, Les/cd$c;->d:Landroid/graphics/Bitmap;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 6
    iget-object p1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    iget-object v0, p0, Les/ld;->d:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setBackgroundView(Landroid/view/View;)V

    goto :goto_0

    .line 7
    :cond_2
    iget-object p1, p0, Les/od;->a:Lcom/esfile/screen/recorder/videos/edit/player/c;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setBackgroundView(Landroid/view/View;)V

    :goto_0
    return-void
.end method
